<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>在线考试系统</title>
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/style.css">

</head>
<body>

		<div class="container-fuld top">
			<h1><img src="../images/loginsj.png" alt="" /> 在线考试管理系统 </h1>
			<a class="btn btn-success btn-xs" id="showHelp">查看帮助</a>
			<span class="hide" id="message">${message }</span>
		</div>
		
			<div class="container  loginBox">
				<div class="alert alert-danger alertMsg">
					* 所有字段必填,密码为学号
				</div>
				<form class="form" method="post" action="<%=path%>/m/index.action"  id="loginForm">
					<input type="hidden" name="myId" value="0" />
					<div class="form-group">
						<label for="username">姓 名：</label>
						<input type="text" 
							name="username"  
							class="form-control" 
							check-type="required"
							maxlength=8
							value="${username }"
							placeholder="请输入注册时的真实姓名"/>
					</div>
					<div class="form-group">
						<label for="password">学 号：</label>
						<input type="text" 
							name="password" 
							class="form-control" 
							check-type="number required"
							number-message="学号只能为数字"
							maxlength=16
							placeholder="请输入您的学号" />
					</div>
					<button class="btn btn-info btn-block" onclick="return checkForm()">登陆进行考试</button>
					<a class="btn btn-success btn-block" href='reg.jsp'>没有账号？去注册</a>
				</form>
			</div>
			<div class="container-fuld">
				<footer>
					版权所有@在线考试管理系统
				</footer>
			</div>
</body>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap3-validation.js"></script>
<script src="js/m.js"></script>

<!-- 警告框  -->
<div class="modal  fade" data-backdrop="static"  id="alertInfo" style="z-index:9999">
      <div class="modal-dialog">
	      <div class="modal-content">
	      <div class="modal-header" >
	        <h3 class="icon-info" style="font-size:20px;margin:8px auto;"> 提示</h3>
	      </div>
	      <div class="modal-body">
	        <span class="alertContent"></span>
	      </div>
	      <div class="modal-footer">
	        <button class="btn btn-sm btn-danger" data-dismiss="modal" aria-hidden="true">关闭</button>
	      </div>
	      </div>
      </div>
 </div>

<!-- 警告框  -->
<div class="modal  fade" data-backdrop="static"  id="alertHelp" style="z-index:9999">
      <div class="modal-dialog">
	      <div class="modal-content">
	      <div class="modal-header" >
	        <h3 class="icon-info" style="font-size:20px;margin:8px auto;"> 帮助信息</h3>
	      </div>
	      <div class="modal-body">
	        <p><b>系统角色</b> : 使用本系统有两种身份: 1.考生  2.管理员 </p>
	    	<p><b>关于登陆</b> : 注意考生的登陆名为: <b>姓名</b> ;  密码为 :<b>学号</b> ,考生登录请下拉选择"我是考生" </p>
	    	<p><b>关于注册 </b>: 第一次使用可选择注册 ,注意选择自己所在分组,如果没有,请联系管理员创建分组,以录入实际信息</p>
	    	
	    	<p>
	    	   <b>注意事项</b> : 考生只有在管理员发布试卷之后才能正常登陆进行考试,一旦提交试卷后无法再进入系统答题
	    	</p>
	      </div>
	      <div class="modal-footer">
	        <button class="btn btn-sm btn-danger" data-dismiss="modal" aria-hidden="true">关闭</button>
	      </div>
	      </div>
      </div>
 </div>

</html>
<%
	application.removeAttribute("message");
 %>
